import { EntityManager, QueryBuilder, SqlEntityManager } from '@mikro-orm/mysql';
import { JobTasks } from "@entities/JobTasks";

type JobTasksField = keyof JobTasks

export class JobTaskVO {
    static baseInfo() :  JobTasksField [] {
        return [
            'id',
            'title',
            'content',
            'priceType',
            'price',
            'settleType',
            'startDate',//活动日期
            'staffNum',
            'longitude',
            'latitude',
            'locationName',
            'address',
            'province',
            'city',
            'district',
            'qrcodeUrl',
            'completedAt',
            'canceledAt',
            'isPublic'
        ]
    }

    static activitySetting() :  JobTasksField [] {
        return [
            'isDownSign',//是否下班打卡
            'isUpSign',//是否上班打卡
            'allowResign',//允许补卡
            'allowAgentSign', // 允许别人代打卡
            'isNotify',//活动通知
        ];
    }
    
    // static state() :  JobTasksField []{
    //     return [
    //         'is',// 项目是否取消
    //         'isCanceled',//项目是否取消
    //     ]
    // }
}